Access Token Endpoint -fetch access and refresh token
This API acquires access and refresh tokens using valid credentials. Set the 'grant_type' parameter in the JSON request body as "authorization_code" for the authorization code flow or "refresh_token" for the token refresh flow.
Header Parameters
The content type should be application/json
Request Body
- The authorization code token provided after the authorization request. - Include this only when grant_type is "authorization_code".
- The refresh token provided along with the original access token. - Include this only when grant_type is "refresh_token".
Possible values: [authorization_code
, refresh_token
]
Specifies the grant type for the token endpoint, either "authorization_code" or "refresh_token".
- 200
- 400
- 401
- 412
Success
Schema
JWT token that can be sent to Jiomeet server to gain access to protected resources.
JWT token that can be used to obtain a new access token from Jiomeet server. Refresh tokens are used when the current access token becomes invalid or expires.
The type of token returned. In this case, it's a "Bearer" token, which means the token is used by appending it to a Bearer HTTP header.
The expiration time of the access token. It tells the application when the token will expire so it can obtain a new one.
Specifies the permissions that are granted to the access token. It defines the actions that can be performed with the token.
{
"refresh_token": "string",
"token_type": "string",
"expires_in": "string",
"scope": "string"
}
Example Access token response
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ1LTVhMGQ1NTBiLTg1Y2MtNDIwMC05N2U1LTgxMDg4MzY0YTZiZSIsInRva2VuSWQiOiJvdC02MDNkM2I3NS0wMjRjLTRhMjMtYmI0Mi0xMjk0MWM0ZDZhOTQiLCJzb3VyY2UiOiJvYXV0aHYyIiwiY2xpZW50SWQiOiI2NTAxNmRiZWM1OTAyZThmYmRlYmQyNGMiLCJzY29wZSI6Im1lZXRpbmc6Y3JlYXRlIG1lZXRpbmc6ZGVsZXRlIiwib2F1dGhTb3VyY2UiOiJvYXV0aHYyIiwiaWF0IjoxNjk2MjU1NjAyLCJleHAiOjE2OTYzNDIwMDJ9.q9ov96lDmdYdBhQ-5JnppOB3s1we6B5NIaqkHoYFjHMSBpY6F22BIfYRSzKZNglByuu6_nw6QGM8MptyQT_qpqnPlCH-uDRgkQ5vvvARLW6wOH2b8kUzEpr8My2seB5WBniplu4UoYEfKRPEuu-8y1fnUF_aDfQ276NP3RU0-8Y",
"refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ1LTVhMGQ1NTBiLTg1Y2MtNDIwMC05N2U1LTgxMDg4MzY0YTZiZSIsInRva2VuSWQiOiJvdC02MDNkM2I3NS0wMjRjLTRhMjMtYmI0Mi0xMjk0MWM0ZDZhOTQiLCJzb3VyY2UiOiJvYXV0aHYyIiwiY2xpZW50SWQiOiI2NTAxNmRiZWM1OTAyZThmYmRlYmQyNGMiLCJzY29wZSI6Im1lZXRpbmc6Y3JlYXRlIG1lZXRpbmc6ZGVsZXRlIiwib2F1dGhTb3VyY2UiOiJvYXV0aHYyIiwiaWF0IjoxNjk2MjU1NjAyLCJleHAiOjE3MDE0Mzk2MDJ9.nd1LJFFN-C6gu6hjWk0kJ1MVZ5_twB_ggvnuoYAuk9r3xVi9KzFlc6mbM6cuP7_RvoGvSp_Oqd_VSzn9O3QRFFhyrEzU0rYG6QBqfCD2Jx4DB_8-oqiBFm-lUWKmwxGOuJ1BElqb-7rEk4HpizlNqoP281L3QQ4T82GUopSgS3A",
"token_type": "Bearer",
"expires_in": "2023-10-03T14:05:42.305Z",
"scope": "meeting:create meeting:delete user:read"
}
Schema
Status Code of the API
The error code of the API
The error message of the API
{
"customCode": 0,
"message": "string"
}
Schema
Status Code of the API
The error code of the API
The error message of the API
{
"customCode": 0,
"message": "string"
}
Schema
Status Code of the API
The error code of the API
The errors array which includes objects with a "property" and "message" properties describing the error
{
"customCode": 0,
"message": "string"
}